package com.ytjj.qmyx.admin.mapper;

import com.ytjj.qmyx.admin.model.NewBanners;
import com.ytjj.qmyx.admin.model.NewBannersExample;
import com.ytjj.qmyx.admin.model.dto.NewBannersDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewBannersMapper {
    long countByExample(NewBannersExample example);

    int deleteByExample(NewBannersExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(NewBanners record);

    int insertSelective(NewBanners record);

    List<NewBanners> selectByExample(NewBannersExample example);

    NewBanners selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") NewBanners record, @Param("example") NewBannersExample example);

    int updateByExample(@Param("record") NewBanners record, @Param("example") NewBannersExample example);

    int updateByPrimaryKeySelective(NewBanners record);

    int updateByPrimaryKey(NewBanners record);

    List<NewBanners> findBannersAll(NewBannersDto newBannersDto);

    int updateBannersById(NewBanners newBanners);
}